import { useNavigate } from 'react-router-dom'
import { NavBar } from 'antd-mobile'
import styles from '../css/ticket-order.module.css'

function Header() {
  const nav = useNavigate()
  return (
    <div className={styles.navBox}>
      <NavBar onBack={() => nav(-1)}>填写订单</NavBar>
    </div>
  )
}

export default Header
